package com.byzk.p2p.admin.money.dao;

import java.util.List;

import com.byzk.p2p.admin.money.dto.OfflineRecharge;
import com.byzk.p2p.admin.money.dto.RechargeRecord;
import com.byzk.p2p.admin.money.vo.OfflineRechargeVo;
import com.byzk.p2p.admin.money.vo.RechargeRecordExportVo;
import com.byzk.p2p.admin.money.vo.RechargeRecordVo;

public interface RechargeDao {

	public Integer countByMethod(RechargeRecordVo record);
	
	public Double sumByMethod(RechargeRecordVo record);
	
	public List<RechargeRecordVo> listByMethod(RechargeRecordVo record);
	
	public Integer countByOffline(OfflineRechargeVo offlineRecord);
	
	public List<OfflineRecharge> listByOffline(OfflineRechargeVo offlineRecord);
	
	public Integer insert(RechargeRecord record);
	
	public Integer update(RechargeRecord record);
	
	public Integer updateOffline(OfflineRecharge offline);
	
	public OfflineRecharge getById(Integer id);
	
	public List<RechargeRecord> getRecordByCode(String code);
	
	public RechargeRecord selectById(Integer id);
	
	public List<RechargeRecordVo> listByExportVo(RechargeRecordExportVo vo);
}
